package com.itlong.cloud.POJO.DTO.property;

import com.itlong.cloud.POJO.DTO.BaseDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *      根据设备自身参数查找设备信息，可用于判断设备唯一性
 * </desc>
 *
 * @createDate 2017/10/11
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PropertyEquipGetDTO extends BaseDTO implements Serializable {

    //设备类型
    private Integer deviceType;

    //设备机号
    private String deviceId;

    //设备名称
    private String deviceName;

    //设备唯一码
    private String deviceUnique;

    public PropertyEquipGetDTO(Integer deviceType, String deviceId,String projectId) {
        this.deviceType = deviceType;
        this.deviceId = deviceId;
        super.setProjectId(projectId);
    }

    public PropertyEquipGetDTO(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public PropertyEquipGetDTO(String projectId) {
        super.setProjectId(projectId);
    }
}